package com.team2.insulatingtools.modular.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team2.insulatingtools.modular.system.entity.ToolsHrOrganization;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yangqian
 * @date 2023-04-03 20:51
 * @description
 **/
public interface ToolsHrOrganizationMapper extends BaseMapper<ToolsHrOrganization> {

    List<ToolsHrOrganization> selectSubOrgs(@Param("orgId") Long orgId);

    List<ToolsHrOrganization> selectOrgsByRole(@Param("orgId") Long orgId,
                                               @Param("speciality") String speciality);
}
